/*
This program sets the paths needed for the project Master file.
Requires having set adopath to the correct folder's ado
(A:/bps_prek/$user/code/ado/personal)
*/

capture program drop set_paths

program define set_paths
    syntax ,

  * User
  global user 					`c(username)'

  sysdir set PLUS               "A:/bps_prek/$user/code/ado/plus"
  sysdir set PERSONAL           "A:/bps_prek/$user/code/ado/personal"
  net set ado                   "A:/bps_prek/$user/code/ado/plus"

  * Set paths
  global raw_data 		        "D:/massachusetts/raw/"
  global raw_data_mcas          "${raw_data}/MA DESE data/MCAS/"
  global raw_data_sims          "${raw_data}/MA DESE data/SIMS/"
  global raw_data_bps           "${raw_data}/BPS/"
  global raw_data_headstart     "${raw_data}/Head Start/raw/"
  global raw_data_census        "${raw_data}/Census/2000 Census Block Groups/"

  global stata_data 			     "D:/massachusetts/BPS_PreK/${user}/"
  global stata_data_analysis 	    "${stata_data}/analysis_data/"
  global stata_data_assignment 		"${stata_data}/assignment/"
  global stata_data_crosswalks 	  "${stata_data}/crosswalks/"
  global stata_data_find_results	"${stata_data}/find_results/"
  global stata_data_location 		  "${stata_data}/location/"
  global stata_data_mcas 	        "${stata_data}/mcas/"
  global stata_data_nsc 		      "${stata_data}/nsc/"
  global stata_data_rejoinder 	  "${stata_data}/rejoinder/"
  global stata_data_sat 	        "${stata_data}/sat/"
  global stata_data_search_request 	"${stata_data}/search_request/"
  global stata_data_sims 	          "${stata_data}/SIMS/"
  global stata_data_year_template 	"${stata_data}/year_template/"
  global stata_data_headstart       "${stata_data}/head_start/"

  global results          "A:/bps_prek/${user}/results/"
  global tables 			    "A:/bps_prek/${user}/results/tables/"
  global figures 			    "A:/bps_prek/${user}/results/figures/"

  * Code paths
  global code	  			    "A:/bps_prek/${user}/code/"

  * Adopath
  adopath + "${code}/ado/"

  * Stata executable
  global stata_exe              "C:\Program Files\Stata17\StataMP-64.exe"

end
